package com.bjx.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bjx.system.domain.entity.RoleEntity;
import com.bjx.system.domain.query.RoleQuery;
import com.bjx.system.domain.vo.RoleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @desc: 角色Mapper
 * @author: liushuai
 * @date: 2022/10/11
 */
@Mapper
public interface RoleMapper extends BaseMapper<RoleEntity> {
    /**
     * 分页查询角色
     * @param page
     * @param roleQuery
     * @return: IPage<RoleVO>
     * @Author: liushuai
     * @Date: 2022/10/11
     */
    IPage<RoleVO> listRolePage(Page page,@Param("query") RoleQuery roleQuery);
}
